package cn.com.chengq.javafx;

import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;

public class App extends Application {

    public static void main(String[] args) {
        launch(args);
        System.out.println("App::main");
    }

    public App() {
        System.out.println("App::App");
    }


    @Override
    public void init() {
        System.out.println("App::init");
    }

    @Override
    public void start(Stage primaryStage) {
        System.out.println("App::start");
        // Parent parent = FXMLLoader.load("config.xml");
        Circle circle = new Circle(40, 40, 30);
        Group root = new Group(circle);
        Scene scene = new Scene(root, 400, 300);

        primaryStage.setTitle("My JavaFX Application");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    @Override
    public void stop() {
        System.out.println("App::stop");
    }
}
